package com.itheima.file;

import java.io.File;

public class Demo04 {

    public static void main(String[] args) {
        File file = new File("G:\\code\\30\\se_advance_30\\day12\\aaa.bbb");
        /*file.mkdirs();
        System.out.println(file.getName());
        System.out.println(file.exists());
        System.out.println(file.isDirectory());
        System.out.println(file.isFile());*/
        System.out.println(file.getPath());//获取路径
        System.out.println(file.getAbsolutePath());//获取绝对路径

    }
}
